﻿namespace WMS6.Web.InboundDetailServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="ReceiptPutawayInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class ReceiptPutawayInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string CaseIDField;
        [OptionalField]
        private string CondititonCodeField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string FromLocField;
        [OptionalField]
        private string FromLpnIDField;
        [OptionalField]
        private string LotField;
        [OptionalField]
        private string LpnField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private string PackIDField;
        [OptionalField]
        private decimal QtyField;
        [OptionalField]
        private string ReceiptIDField;
        [OptionalField]
        private string ReceiptLineIDField;
        [OptionalField]
        private string SkuIDField;
        [OptionalField]
        private string ToLocField;
        [OptionalField]
        private string TransIDField;
        [OptionalField]
        private string UomField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string CaseID
        {
            get
            {
                return this.CaseIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CaseIDField, value))
                {
                    this.CaseIDField = value;
                    this.RaisePropertyChanged("CaseID");
                }
            }
        }

        [DataMember]
        public string CondititonCode
        {
            get
            {
                return this.CondititonCodeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CondititonCodeField, value))
                {
                    this.CondititonCodeField = value;
                    this.RaisePropertyChanged("CondititonCode");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string FromLoc
        {
            get
            {
                return this.FromLocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromLocField, value))
                {
                    this.FromLocField = value;
                    this.RaisePropertyChanged("FromLoc");
                }
            }
        }

        [DataMember]
        public string FromLpnID
        {
            get
            {
                return this.FromLpnIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromLpnIDField, value))
                {
                    this.FromLpnIDField = value;
                    this.RaisePropertyChanged("FromLpnID");
                }
            }
        }

        [DataMember]
        public string Lot
        {
            get
            {
                return this.LotField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotField, value))
                {
                    this.LotField = value;
                    this.RaisePropertyChanged("Lot");
                }
            }
        }

        [DataMember]
        public string Lpn
        {
            get
            {
                return this.LpnField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LpnField, value))
                {
                    this.LpnField = value;
                    this.RaisePropertyChanged("Lpn");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public string PackID
        {
            get
            {
                return this.PackIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PackIDField, value))
                {
                    this.PackIDField = value;
                    this.RaisePropertyChanged("PackID");
                }
            }
        }

        [DataMember]
        public decimal Qty
        {
            get
            {
                return this.QtyField;
            }
            set
            {
                if (!this.QtyField.Equals(value))
                {
                    this.QtyField = value;
                    this.RaisePropertyChanged("Qty");
                }
            }
        }

        [DataMember]
        public string ReceiptID
        {
            get
            {
                return this.ReceiptIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReceiptIDField, value))
                {
                    this.ReceiptIDField = value;
                    this.RaisePropertyChanged("ReceiptID");
                }
            }
        }

        [DataMember]
        public string ReceiptLineID
        {
            get
            {
                return this.ReceiptLineIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReceiptLineIDField, value))
                {
                    this.ReceiptLineIDField = value;
                    this.RaisePropertyChanged("ReceiptLineID");
                }
            }
        }

        [DataMember]
        public string SkuID
        {
            get
            {
                return this.SkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuIDField, value))
                {
                    this.SkuIDField = value;
                    this.RaisePropertyChanged("SkuID");
                }
            }
        }

        [DataMember]
        public string ToLoc
        {
            get
            {
                return this.ToLocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToLocField, value))
                {
                    this.ToLocField = value;
                    this.RaisePropertyChanged("ToLoc");
                }
            }
        }

        [DataMember]
        public string TransID
        {
            get
            {
                return this.TransIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TransIDField, value))
                {
                    this.TransIDField = value;
                    this.RaisePropertyChanged("TransID");
                }
            }
        }

        [DataMember]
        public string Uom
        {
            get
            {
                return this.UomField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UomField, value))
                {
                    this.UomField = value;
                    this.RaisePropertyChanged("Uom");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

